<%@ page contentType="text/html;charset=utf-8" language="java" %>
<%@pageisELIgnored="false"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>蓝色音乐网站</title>
<link rel="stylesheet" type="text/css" href="css/style.css"/>
<script type="text/javascript">
function linkstyle(x){
	var aList = document.getElementsByTagName('a');
    var iCount = aList.length;
    for(var i = 0;i<iCount;i++)
    {
		aList[i].className =null;
    }
	x.className='current';
 }
</script>
 <style>
        .pagination {
            display: flex;
            justify-content: center;
            margin-top: 20px;
        }

        .pagination a {
            display: inline-block;
            color: rgb(236, 176, 176);
            text-align: center;
            padding: 8px 16px;
            text-decoration: none;
            border: 1px solid #ddd;
            margin: 0 4px;
            transition: background-color .3s;
        }

        .pagination a.active {
            background-color: #4CAF50;
            color: white;
            border: 1px solid #4CAF50;
        }
    </style>
</head>
<body>
<div id="container">
  <div id="top">
    <div id="header">
      <div id="logo_section">
        <h1>在线音乐网站<span>后台管理</span></h1>
        <h2>Bringing you to the music world</h2>
      </div>
      <div id="search_box">
        <form action="#" method="post">
          <input name="search" type="text" id="textfield" class="inputclass" value=""/>
          <input type="submit" name="Search" value="搜索" alt="Search" class="button" title="Search" />
        </form>
      </div>
    </div>
    <div id="menu">
       <ul>
        <li><a href="welcome.html" target="main" onclick="linkstyle(this);">回到首页</a></li>
        <li><a href="passwordAdmin.html" target="main" onclick="linkstyle(this);">修改密码</a></li>
        <li><a href="singerList.html"  target="main" class="current" onclick="linkstyle(this);">歌手管理</a></li>
        <li><a href="cdList.html" target="main" onclick="linkstyle(this);" >专辑管理</a></li>
        <li><a href="songList.html" target="main" onclick="linkstyle(this);">编歌曲</a></li>
        <li><a href="login.html" target="main" onclick="linkstyle(this);">退出系统</a></li>
      </ul>
    </div>
  </div>
<div id="middle">
 <c:import url="singerList.jsp"></c:import>
</div>
   <div class="pagination">
        <a href="#">&laquo;</a>
        <a href="app?type=singerList&pagecount=<%
        int pagecount =Integer.parseInt((request.getAttribute("pagecount")+""));
        if(pagecount-1<1){
          pagecount=pagecount;
        }
        else{
        pagecount=(pagecount-1);
        }
        out.print(pagecount);
        %>
        ">上一页</a>
        <a href="#" class="active">${pagecount}</a>
        <a href="app?type=singerList&pagecount=<%
        pagecount =Integer.parseInt((request.getAttribute("pagecount")+""));
                out.print(pagecount+1);
                %>">下一页</a>
        <a href="#">&raquo;</a>
    </div>
<div id="bottom"> Copyright ©长沙民政职业技术学院《Web应用开发》课程团队 2012-2017 </div>
</div>
</body>
</html>
